﻿using Dubbo.Rpc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dubbo.Config.Api
{
    public class AbstractInterfaceConfig : AbstractMethodConfig
    {
        public ApplicationConfig Application { get; set; }

        // 连接事件
        protected string onconnect;

        // 断开事件
        protected string ondisconnect;

        protected void CheckApplication()
        {
            if (Application == null)
            {
                throw new Exception("No such application config! Please add <dubbo:application name=\"...\" /> to your spring config.");
            }
            //appendProperties(application);
        }

        protected List<URL> LoadRegistries(bool provider)
        {
            return new List<URL>();
        }
    }
}
